package com.liuwei.msmall.order.feign;

import com.liuwei.msmall.order.vo.UserAddressVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @Classname MemberFeignService
 * @Description TODO
 * @Date 2020/7/7 20:52
 * @Created by 刘
 */
@FeignClient("msmall-member-service")
public interface MemberFeignService {

    @GetMapping("/member/memberreceiveaddress/{memberId}")
    List<UserAddressVo> getReceiveAddress(@PathVariable("memberId") Long memberId);

    @GetMapping("/member/memberreceiveaddress/getById/{addrId}")
    UserAddressVo getAddrByAddrId(@PathVariable("addrId") Long addrId);
}
